# coding: utf-8
from sqlalchemy import Column, Integer, String

from apps.models.base import Base


class Music(Base):
    __tablename__ = 'musics'

    id = Column(Integer, primary_key=True, autoincrement=True)
    title = Column(String(50))
    url = Column(String(100))
    _from = Column('from', String(20))
    cate_id = Column(Integer, nullable=False)
    lesson_n = Column(Integer, nullable=False)